﻿<UserControl x:Class="TraceInspector.UI.WPF.Views.InspectionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="6" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="30" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="30" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="30" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="30" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Label Content="Inspection id:" HorizontalAlignment="Right" />                      <TextBox Text="{Binding Inspection.Id, UpdateSourceTrigger=PropertyChanged }" Grid.Column="2" />
        <Label Grid.Row="1"  Content="Work pressure:" HorizontalAlignment="Right" />        <TextBox Grid.Row="1" Text="{Binding Inspection.WorkPressure, UpdateSourceTrigger=PropertyChanged}" Grid.Column="2" />
        
        
        <Button Command="{Binding UpdateCommand}" Grid.Row="8" Content="Update" />
    </Grid>
</UserControl>
